package com.jrx.anytxn.customer.dto.customer;

import com.jrx.anytxn.common.constant.RegexConstant;
import com.jrx.anytxn.customer.dto.BaseApiReq;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.List;

public class CustomerEcifReq extends BaseApiReq implements Serializable {
    @NotBlank(message = "证件号不能为空")
    @Pattern(regexp = RegexConstant.ID_NO, message = "身份证号码格式不正确")
    @ApiModelProperty(value="证件号码")
    private String idNumber;

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = RegexConstant.MOBILE_FORMAT, message = "手机号格式不对，请正确输入")
    @ApiModelProperty(value="手机号")
    private String mobile;

    @ApiModelProperty(value = "签发机关归属地")
    private String disLegalId;


    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }


    public String getDisLegalId() {
        return disLegalId;
    }

    public void setDisLegalId(String disLegalId) {
        this.disLegalId = disLegalId;
    }
}
